package com.balabala.gym_goods.service.impl;

import com.balabala.goods.pojo.dto.BookCourseQueryDto;
import com.balabala.goods.pojo.vo.BookCourseDto;
import com.balabala.gym_goods.mapper.BookCourseMapper;
import com.balabala.gym_goods.pojo.entity.Category;
import com.balabala.gym_goods.service.BookCourseService;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class BookCourseServiceImpl  implements BookCourseService  {
    @Autowired
    BookCourseMapper bookCourseMapper;

    //根据条件查询预约课程列表
    @Override
    public List<BookCourseDto> findListByQueryDto(BookCourseQueryDto bookCourseQueryDto) {
        return bookCourseMapper.findListByQueryDto(bookCourseQueryDto);
    }

    //根据预约课程id查询预约课程信息
    @Override
    public BookCourseDto findByScheduleId(Long scheduleId) {
        return bookCourseMapper.findByScheduleId(scheduleId);
    }
}
